<div style="position: absolute;top: 120px; left: 450px">
    <font style="font-size: 25px ;color: #e8198b">采购入库报表：</font>&nbsp;&nbsp;
    日期范围：<input type="text" class="su" id="timeRange">
    <input type="button" readonly="true" value="查询" onclick="outMonthSoMain()" style="background-color: #1E9FFF">
    出库次数：<span id="total"></span>&nbsp;&nbsp;&nbsp;

</div>
<table class="altrowstable">
    <tr>
        <td>编号</td>
        <td>产品名称</td>
        <td>销售单编号</td>
        <td>入库数量</td>
        <td>入库时间</td>
        <td>创建用户</td>
        <td>入库</td>
    </tr>
    <tbody id="putFormPoMainBody">

    </tbody>
    <div  style="position: absolute; margin-top: 0px;padding-left: 700px">
        <ul id="page">分页</ul>
    </div></table>
<script type="text/html" id="putFormPoMainTemplate">
    {{each data}}
    <tr>
        <td>{{$index+1}}</td>
        <td>{{$value.productCode}}</td>
        <td>{{$value.orderCode}}</td>
        <td>{{$value.stockNum}}</td>
        <td>{{$value.stockTime}}</td>
        <td>{{$value.createUser}}</td>
        <td>入库</td>
    </tr>
    {{/each}}
</script>
<script>
    laydate.render({
        elem: '#timeRange'
        ,type: 'month'
    });

    function outMonthSoMain() {
        showPage2({
            currentPage: 1,
            pageSize: 5 ,
            url: '/outMonthSoMain',
            templateId: 'putFormPoMainTemplate',
            contentId: 'putFormPoMainBody',
            params:{
                date:$('#timeRange').val(),
                stockType:'1'
            }
        })
    }

</script>